
<?php
 
/**
  * Utilisation de la classe
  */
 
 include_once('MySQL.php');  
try
{
$Mysql = new Mysql('mysql:host=localhost', 'thiebthieb', 'login', '');
$Resulats = $Mysql->TabResSQL('SELECT Champ1,Champ2 FROM tabletest');
 
foreach ($Resulats as $Valeur)
{
echo $Valeur['nom'];
echo $Valeur['prenom'];
}
}
catch (MySQLExeption $e)
{
echo $e -> RetourneErreur();
}
?>

